import {Effect} from "../IEffectContainer";
import {ActorActionManager} from "../../manager/ActorActionManager";

//增加伤害
export class zengshang extends Effect {
    //日志控制器
    logLevel = "zengshang"

    apply(target: ActorActionManager) {
        super.apply(target)
        this.log.log(this.logLevel, '数据处理')
        this.remove(target)
        target.actorProperty.attack+=this.attackUp[this.level-1]
    }

    //不会调用
    remove(target: ActorActionManager) {
        target.actorProperty.attack=target.data.attack
    }
}
